package warmachineroster.presentation.dnd;

import java.util.List;

import org.eclipse.gef.dnd.SimpleObjectTransfer;

import warmachinesystem.BaseUnit;

public class OutlineToRosterTransfer extends SimpleObjectTransfer {

	public static final String TYPE_NAME = "Outline To Roster Transfer"; //$NON-NLS-1$
	private static OutlineToRosterTransfer TRANSFER = null;
	private static final int TYPE_ID = registerType(TYPE_NAME);

	private OutlineToRosterTransfer() {
	}

	public static OutlineToRosterTransfer getInstance() {
		if (TRANSFER == null)
			TRANSFER = new OutlineToRosterTransfer();
		return TRANSFER;
	}

	protected int[] getTypeIds() {
		return new int[] {TYPE_ID};
	}

	protected String[] getTypeNames() {
		return new String[] {TYPE_NAME};
	}

	
	@SuppressWarnings("unchecked")
	public List<BaseUnit> getBaseUnits(){
		return (List<BaseUnit>) getObject();
	}

	@Override
	public Object getObject() {
		return super.getObject();
	}

	@Override
	public void setObject(Object obj) {
		super.setObject(obj);
	}

}
